package com.zyh.scs.admin.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.javers.core.metamodel.annotation.DiffInclude;
import org.javers.core.metamodel.annotation.PropertyName;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author hwh
 * @ClassName: 根据用户id，手机号，工号查询用户充值中心$
 * @Description: $
 * @Date $
 * @Version 1.0
 */
@Data
@Schema(description = "根据用户id，手机号，工号查询用户充值中心dto")
@Accessors(chain = true)
public class RechargePhoneDTO implements Serializable {

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "guid")
    private String guid;

    /**
     * 工号
     */
    @Schema(description = "工号")
    private String userJobNumber;

    /**
     * 手机号
     */
    @DiffInclude
    @PropertyName("手机号")
    @Schema(description = "手机号")
    @Length(min = 11, max = 11, message = "手机号必须为11位")
    private String phone;

    /**
     * 充值金额
     */
    @Schema(description = "充值金额")
    @NotNull(message = "充值金额不能为空")
    private BigDecimal rechargeNumber;

    /**
     * 充值类型 1餐补账户、 2现金账户
     */
    @NotBlank(message = "充值类型不能为空")
    @Schema(description = "充值类型 1餐补账户、 2现金账户")
    private String rechargeType;


    /**
     * 备注
     */
    @Schema(description = "备注")
    private String notes;
}
